package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.RoutinePathologyTsSj;
import com.zhijian.medical.entity.vo.request.RoutinePathologyTsSjSearchVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologyTsSjVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoutinePathologyTsSjMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoutinePathologyTsSj record);

    int insertSelective(RoutinePathologyTsSj record);

    RoutinePathologyTsSj selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoutinePathologyTsSj record);

    int updateByPrimaryKey(RoutinePathologyTsSj record);

    /**
     * 查询总数
     *
     * @param routinePathologyTsSjSearchVo
     * @return
     */
    int count(RoutinePathologyTsSjSearchVo routinePathologyTsSjSearchVo);

    /**
     * 查询列表
     *
     * @param routinePathologyTsSjSearchVo
     * @return
     */
    List<RoutinePathologyTsSjVo> selectList(RoutinePathologyTsSjSearchVo routinePathologyTsSjSearchVo);

    /**
     * 查询单个
     *
     * @param routinePathologyTsSjSearchVo
     * @return
     */
    RoutinePathologyTsSjVo selectOne(RoutinePathologyTsSjSearchVo routinePathologyTsSjSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    RoutinePathologyTsSjVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param routinePathologyTsSjSearchVo
     * @return
     */
    void deleteByCondition(RoutinePathologyTsSjSearchVo routinePathologyTsSjSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<RoutinePathologyTsSj> entities);

    /**
     * 根据TsId查询列表
     *
     * @param tsId
     * @return
     */
    List<RoutinePathologyTsSjVo> selectListByTsId(Long tsId);

    /**
     * 根据SjId查询列表
     *
     * @param sjId
     * @return
     */
    List<RoutinePathologyTsSjVo> selectListBySjId(Long sjId);
}